export function loadPage(page,resolve) {
	let dir=page.substring(0,page.lastIndexOf("/"));
	let name=page.substring(page.lastIndexOf("/"));
	if (dir.startsWith("/developer")) return require(["@/views/developer"+page.replace("/developer","")], resolve);
	else if (dir.startsWith("/ruoyi")) return require(["@/views/ruoyi"+page.replace("/ruoyi","")], resolve);
	else if (dir=="/mes/autooffice") return require(["@/views/mes/autooffice"+name], resolve);
	else if (dir=="/mes/certificate") return require(["@/views/mes/certificate"+name], resolve);
	else if (dir=="/mes/main") return require(["@/views/mes/main"+name], resolve);
	else if (dir=="/mes/produce") return require(["@/views/mes/produce"+name], resolve);
	else if (dir=="/mes/product") return require(["@/views/mes/product"+name], resolve);
	else if (dir=="/mes/quality") return require(["@/views/mes/quality"+name], resolve);
	else if (dir=="/mes/sale") return require(["@/views/mes/sale"+name], resolve);
	else if (dir=="/mes/supplychainmana") return require(["@/views/mes/supplychainmana"+name], resolve);
	else if (dir=="/mes/system") return require(["@/views/mes/system"+name], resolve);
	else if (dir=="/mes/systemadmin") return require(["@/views/mes/systemadmin"+name], resolve);
	else if (dir=="/mes/produce/flow") return require(["@/views/mes/produce/flow"+name], resolve);

}